package org.hzz.application.command;

import io.gitee.pkmer.ddd.shared.command.CommandWithMark;
import lombok.Data;
import lombok.Value;
import lombok.experimental.Accessors;
import org.hzz.application.handler.IssueCouponCmdHandler;

import java.time.LocalDateTime;

/**
 * @author <a href="mailto:1193094618@qq.com">pkmer</a>
 * <br>
 * <a href = "https://gitee.com/developeros/videos-online">Code Repository</a>
 * At 2024/8/30
 * 发布优惠券命令
 * {@link IssueCouponCmdHandler}
 */
@Data
@Accessors(chain = true)
public class IssueCouponCmd implements CommandWithMark {
    public static final String MARK = IssueCouponCmd.class.getName();

    Long id;

    // 开始发放时间
     LocalDateTime issueBeginTime;

    // 结束发放时间
     LocalDateTime issueEndTime;

    // 优惠券有效期天数，0：表示有效期是指定有效期的
     Integer termDays;

    // 优惠券有效期开始时间
     LocalDateTime termBeginTime;

    // 优惠券有效期结束时间
     LocalDateTime termEndTime;

    @Override
    public String mark() {
        return MARK;
    }


}
